package com.goblin.security;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * desc: list 0:存放登录时间 1：存放用户信息 2: 存放菜单集合 3：存放权限集合.
 *
 * @author goblin
 * <p>
 * 2019/11/1 14:27
 */
final public class AuthorityStore {

    private static Map<String, List> users = new HashMap<>();

    public static void saveAuth(String token, List list) {
        users.put(token, list);
    }

    public static List getAuth(String authorization) {
        return users.get(authorization);
    }

    public static List delAuth(String authorization) {
        return users.remove(authorization);
    }

}